package Exer04_循环;

public class _1_4_3_求小于8888的最大正整数 {
    public static void main(String[] args) {
        int sum = 0,num = 0;
        while (sum < 8888){
            num ++;
            sum += num;
        }
        sum-=num;
        num--;
        System.out.println("sum = "+ sum +"\n" + "num = " + num);
    }
}
